@import '../style/config.scss';

//重置
a{
  text-decoration: none;
}
li{
  list-style-type:none;
}
#app{
  height: 100%;
  width: 100%;
  min-width: 900px;
}
//button
.el-button--small{
  height: 28px;
  min-width: 60px;
  font-size: $base-font-size;
  padding: 4px 12px;
  font-family: inherit;
}
.el-button--info{
  background-color: $base-color;
  border-color: $base-color;
  &.is-plain{
    background: #fff;
    border: 1px solid #bfcbd9;
    color: #1f2d3d;
  }
}
.el-button--danger{
  background-color: #ff4949;
  border-color: #ff4949;
}
//input
.el-input--small .el-input__inner{
  height: 28px!important;
}

//表单
.search-box{
  margin-bottom: 15px;
  border-bottom: 1px solid #ebf1f3;
  .form-horizontal{
    margin-bottom: 15px;
    a{
      margin-right: 10px;
    }
    .el-input__icon{
      background-color: $base-color;
      color: #fff;
      border-radius: 0 3px 3px 0;
      -webkit-border-radius: 0 3px 3px 0;
      -moz-border-radius: 0 3px 3px 0;
      -o-border-radius: 0 3px 3px 0;
    }
  }
  .collapseBox{
    .title{
      font-size: $base-font-size;
      margin-bottom: 10px;
      border-radius: 2px;
      background: #EBF7FF;
      height: 28px;
      line-height: 28px;
      width: 100%;
      padding: 0 20px;
    }
  }
}
.form-wrap{
  padding: 0 15px;
  overflow: hidden;
  .el-select{
    width: 100%;
  }
  .el-color-picker{
    .el-color-picker__trigger{
      height: 28px!important;
    }
    .el-color-picker__color{
      width: 14px;
      height: 14px;
    }
    .el-color-picker__icon{
      top: -2px;
    }
  }
  .el-form-item{
    float: left;
    margin-bottom: 15px;
    &.item-5{
      width: 50%;
    }
    &.item-10{
      width: 100%;
    }
  }
  .el-form-item__label{
    width: 150px!important;
    padding-left: 25px;
    &:before{
      margin-left: -10px;
    }
  }
  .el-form-item__content{
    margin-left: 150px!important;
  }
}
//分页
.page-wrap{
  margin-top: 15px;
  padding-right: 15px;
  text-align: right;
}
//新增 / 编辑 按钮
.operate-wrap{
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ebf1f3;
  .remove-box {
    display: inline-block;
    width: 75px;
    margin-right: 10px;
    border-right: solid 1px #dfe4ea;
  }
}
//tabs
.el-tabs__nav{
  .el-tabs__item{
    height: 34px;
    line-height: 34px;
  }
}
//弹窗按钮
.el-dialog__footer,
.el-message-box__btns{
  .el-button{
    padding: 6px 15px;
  }
}
.el-message-box__wrapper{
  .el-message-box__title{
    text-align: center;
    font-weight: 400;
    font-size: 18px;
  }
}
.el-dialog__wrapper{
  .el-dialog__header{
    text-align: center;
  }
  .el-dialog__title{
    font-weight: 400;
    font-size: 18px;
  }
  .el-form-item {
    margin-bottom: 0;
  }
}

//checkbox radio
.el-checkbox+.el-checkbox,
.el-radio+.el-radio{
  margin-left: 0!important;
  margin-right: 12px;
}
.el-checkbox-group .el-checkbox:first-child,
.el-radio-group .el-radio:first-child{
  margin-right: 12px;
}
.el-checkbox-group .el-checkbox:last-child,
.el-radio-group .el-radio:last-child{
  margin-right: 0;
}
.el-radio-group .el-radio{
  line-height: 36px;
}
//表格
.el-table{
  font-size: 12px;
  .cell a{
    color: $base-color;
    &:link,
    &:visited,
    &:active{
      color: $base-color;
    }
    &:hover{
      text-decoration: underline;
    }
  }
  td,th{
    height: 28px!important;
  }
  td{
    padding-top: 4px;
    padding-bottom: 4px;
    >div{
      height: 28px;
      line-height: 26px!important;
      color: $font-color-6 !important;
    }
  }
  th{
    font-weight: normal;
    div{
      color: $font-color-9 !important;
    }
  }
  .el-input--small .el-input__inner{
    height: 26px!important;
  }
}
